<template>
	<div id="sousuo">
		<div class="item_sousuo_div">
			<div class="inpt_div">
				<img @click="su()" src="../assets/main/搜索.png" />
				<input type="text" placeholder="尖椒肉丝" />
			</div>
			<div @click="qx()" class="span_div">
				<span>取消</span>
			</div>
		</div>
		<div>
			<div class="item_sousuo_top_div">
				<div>搜索历史</div>
				<div>清除搜索历史</div>
			</div>
			<div class="item_sousuo_bottom_div">
				<div class="item_lishi_div">尖椒肉丝</div>
			</div>
		</div>
	</div>

</template>

<script>
	export default{
		methods:{
			su(){
				this.$router.push("/searchdetails")
			},
			qx(){
				this.$router.push("/home")
			}
		}
	}
</script>

<style Lang="less" scoped>
	* {
		margin: 0;
		padding: 0;
	}

	#sousuo {
		background-color: #FFFFFF;
		height: 100%;
		position: fixed;
		width: 100%;
	}
	.item_lishi_div{
		margin-left: 20px;
		font-size: 16px;
		margin-top: 12px;
		padding: 8px;
		border: 0.3px solid #000000;
		border-radius: 5px;
		background-color: #F1F1F1;
	}
	.item_sousuo_top_div{
		margin-left: 22px;
		margin-right: 22px;
		margin-top: 24px;
		font-size: 16px;
		display: flex;
		justify-content: space-between;
	}
	.item_sousuo_top_div :nth-child(1){
		text-align: left;
	}
	.item_sousuo_top_div :nth-child(2){
		text-align: right;
	}
	.span_div {
		display: flex;
		flex: 1.5;
	}
	.item_sousuo_bottom_div{
		display: flex;
		justify-content: space-between;
	}
	.span_div span {
		font-size: 16px;
		line-height: 55px;
	}

	.item_sousuo_div {
		display: flex;
		justify-content: space-between;
	}

	.inpt_div {
		background: #F5F5F5;
		margin-left: 20px;
		margin-right: 20px;
		height: 30px;
		margin-top: 15px;
		display: flex;
		flex: 7.5;
		justify-content: center;
		align-items: center;
		line-height: 22px;
		border-radius: 16px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.inpt_div img {
		height: 16px;
		width: 16px;
	}

	.inpt_div input {
		flex: 1;
		height: 22px;
		border-radius: 16px;
		padding-left: 15px;
		border: none;
		background: #F5F5F5;
		font-size: 14px;
		outline: none;
	}
</style>
